package com.dzl.constant;

/**
 * 订单相关的枚举对象
 * @author liuguanjun
 * @since 2022-02-23 16:33:43
 */
public enum WelfareOrderEnum {

    //订单状态；1:待付款，2:已付款、待发货，3:已发货、待收货，4:已完成，5:已取消，6:已退款
    ORDER_STATUS_UNPAY(1, "待付款"),
    ORDER_STATUS_PAID(2, "待发货"),
    ORDER_STATUS_SHIPED(3, "待收货"),
    ORDER_STATUS_COMPLETED(4, "已完成"),
    ORDER_STATUS_CANCEL(5, "已取消"),
    ORDER_STATUS_NO_DELIVERY_REFUND(6, "未发货已退款"),
    ORDER_STATUS_DELIVERY_REFUND(7, "已发货已退款"),
    ORDER_STATUS_PRE_PAID(8, "待打款"),

    // API类型；1:充值，2:提卡
    ORDER_API_TYPE_RECHARGE(1, "充值"),
    ORDER_API_TYPE_EXTRACT_CARD(2, "提卡"),

    // 订单类型；1:实体订单，2:虚拟订单，3:虚拟API充值订单，4:兑换订单
    ORDER_TYPE_PHYSICAL(1, "实体订单"),
    ORDER_TYPE_VIRTUAL(2, "虚拟订单"),
    ORDER_TYPE_VIRTUAL_API_RECHARGE(3, "API充值订单"),
    ORDER_TYPE_ENTERPRISE_API(8, "API商家订单"),//如中传互动游戏公司
    ORDER_TYPE_EXCHANGE(4, "兑换订单");

    private Integer code;
    private String name;

    WelfareOrderEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}